package com.galaxy.user.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.galaxy.common.mybatis.core.domain.BaseEntity;
import com.galaxy.common.translation.annotation.Translation;
import com.galaxy.common.translation.constant.TransConstant;
import com.galaxy.user.domain.UserFeedback;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 用户反馈视图对象
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AutoMapper(target = UserFeedback.class)
public class UserFeedbackVo extends BaseEntity {

    /** 主键 */
    private Long id;

    /** 用户ID */
    private Long userId;

    /** 反馈类型(1:功能建议,2:问题投诉,3:其他) */
    private Integer feedbackType;

    /** 反馈内容 */
    private String content;

    /** 联系方式 */
    private String contact;

    /** 处理状态(0:未处理,1:处理中,2:已处理) */
    private Integer status;

    /** 回复内容 */
    private String reply;

    @TableField(exist = false)
    private UserBaseVo userBase;

    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "image")
    private String image;


    /**
     * 纬度
     */
    private BigDecimal latitude;

    /**
     * 经度
     */
    private BigDecimal longitude;

    private Long deviceId;
}
